<template>
  <div>
    <van-nav-bar :title="tohand" left-text="返回" right-text="按钮" left-arrow @click-left="onClickLeft" @click-right="onClickRight" />
  </div>
</template>

<script>
  export default {
    props: ['tohand'],
    data() {
      return {

      }
    },
    methods: {
      onClickLeft() {
        // console.log(11)
        this.$toast.success("fanhui");
      },
      onClickRight() {
        this.$toast.fail("search")
      }
    }
  }
</script>

<style>
</style>
